package com.caifu.pojo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * <p>
 * 人员进出记录表
 * </p>
 *
 * @author tww
 * @since 2020-12-14
 */
public class CUserRecord extends Model<CUserRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId("ID")
    private Integer id;

    /**
     * 人员编号
     */
    private String userNo;

    /**
     * 设备id
     */
    private Integer deviceId;

    /**
     * 类型
     */
    private String type;

    /**
     * 记录时间
     */
    private String createTime;

    /**
     * 状态
     */
    private String status;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public String getUserNo() {
        return userNo;
    }

    public void setUserNo(String userNo) {
        this.userNo = userNo;
    }
    public Integer getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(Integer deviceId) {
        this.deviceId = deviceId;
    }
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "CUserRecord{" +
        "id=" + id +
        ", userNo=" + userNo +
        ", deviceId=" + deviceId +
        ", type=" + type +
        ", createTime=" + createTime +
        ", status=" + status +
        "}";
    }
}
